package top.wintp.offlinedataanalysis.anlyser.domain;

import java.io.Serializable;
import java.util.Date;

/**
 * stats_device_browser
 *
 * @author
 */
public class StatsDeviceBrowser extends StatsDeviceBrowserKey implements Serializable, BaseTableObj {
    /**
     * 活跃用户数
     */
    private Integer activeUsers;

    /**
     * 新增用户数
     */
    private Integer newInstallUsers;

    /**
     * 总用户数
     */
    private Integer totalInstallUsers;

    /**
     * 会话个数
     */
    private Integer sessions;

    /**
     * 会话长度
     */
    private Integer sessionsLength;

    /**
     * 总会员数
     */
    private Integer totalMembers;

    /**
     * 活跃会员数
     */
    private Integer activeMembers;

    /**
     * 新增会员数
     */
    private Integer newMembers;

    /**
     * pv数
     */
    private Integer pv;

    private Date created;

    private static final long serialVersionUID = 1L;

    public Integer getActiveUsers() {
        return activeUsers;
    }

    public void setActiveUsers(Integer activeUsers) {
        this.activeUsers = activeUsers;
    }

    public Integer getNewInstallUsers() {
        return newInstallUsers;
    }

    public void setNewInstallUsers(Integer newInstallUsers) {
        this.newInstallUsers = newInstallUsers;
    }

    public Integer getTotalInstallUsers() {
        return totalInstallUsers;
    }

    public void setTotalInstallUsers(Integer totalInstallUsers) {
        this.totalInstallUsers = totalInstallUsers;
    }

    public Integer getSessions() {
        return sessions;
    }

    public void setSessions(Integer sessions) {
        this.sessions = sessions;
    }

    public Integer getSessionsLength() {
        return sessionsLength;
    }

    public void setSessionsLength(Integer sessionsLength) {
        this.sessionsLength = sessionsLength;
    }

    public Integer getTotalMembers() {
        return totalMembers;
    }

    public void setTotalMembers(Integer totalMembers) {
        this.totalMembers = totalMembers;
    }

    public Integer getActiveMembers() {
        return activeMembers;
    }

    public void setActiveMembers(Integer activeMembers) {
        this.activeMembers = activeMembers;
    }

    public Integer getNewMembers() {
        return newMembers;
    }

    public void setNewMembers(Integer newMembers) {
        this.newMembers = newMembers;
    }

    public Integer getPv() {
        return pv;
    }

    public void setPv(Integer pv) {
        this.pv = pv;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        StatsDeviceBrowser other = (StatsDeviceBrowser) that;
        return (this.getPlatformDimensionId() == null ? other.getPlatformDimensionId() == null : this.getPlatformDimensionId().equals(other.getPlatformDimensionId()))
                && (this.getDateDimensionId() == null ? other.getDateDimensionId() == null : this.getDateDimensionId().equals(other.getDateDimensionId()))
                && (this.getBrowserDimensionId() == null ? other.getBrowserDimensionId() == null : this.getBrowserDimensionId().equals(other.getBrowserDimensionId()))
                && (this.getActiveUsers() == null ? other.getActiveUsers() == null : this.getActiveUsers().equals(other.getActiveUsers()))
                && (this.getNewInstallUsers() == null ? other.getNewInstallUsers() == null : this.getNewInstallUsers().equals(other.getNewInstallUsers()))
                && (this.getTotalInstallUsers() == null ? other.getTotalInstallUsers() == null : this.getTotalInstallUsers().equals(other.getTotalInstallUsers()))
                && (this.getSessions() == null ? other.getSessions() == null : this.getSessions().equals(other.getSessions()))
                && (this.getSessionsLength() == null ? other.getSessionsLength() == null : this.getSessionsLength().equals(other.getSessionsLength()))
                && (this.getTotalMembers() == null ? other.getTotalMembers() == null : this.getTotalMembers().equals(other.getTotalMembers()))
                && (this.getActiveMembers() == null ? other.getActiveMembers() == null : this.getActiveMembers().equals(other.getActiveMembers()))
                && (this.getNewMembers() == null ? other.getNewMembers() == null : this.getNewMembers().equals(other.getNewMembers()))
                && (this.getPv() == null ? other.getPv() == null : this.getPv().equals(other.getPv()))
                && (this.getCreated() == null ? other.getCreated() == null : this.getCreated().equals(other.getCreated()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getPlatformDimensionId() == null) ? 0 : getPlatformDimensionId().hashCode());
        result = prime * result + ((getDateDimensionId() == null) ? 0 : getDateDimensionId().hashCode());
        result = prime * result + ((getBrowserDimensionId() == null) ? 0 : getBrowserDimensionId().hashCode());
        result = prime * result + ((getActiveUsers() == null) ? 0 : getActiveUsers().hashCode());
        result = prime * result + ((getNewInstallUsers() == null) ? 0 : getNewInstallUsers().hashCode());
        result = prime * result + ((getTotalInstallUsers() == null) ? 0 : getTotalInstallUsers().hashCode());
        result = prime * result + ((getSessions() == null) ? 0 : getSessions().hashCode());
        result = prime * result + ((getSessionsLength() == null) ? 0 : getSessionsLength().hashCode());
        result = prime * result + ((getTotalMembers() == null) ? 0 : getTotalMembers().hashCode());
        result = prime * result + ((getActiveMembers() == null) ? 0 : getActiveMembers().hashCode());
        result = prime * result + ((getNewMembers() == null) ? 0 : getNewMembers().hashCode());
        result = prime * result + ((getPv() == null) ? 0 : getPv().hashCode());
        result = prime * result + ((getCreated() == null) ? 0 : getCreated().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", activeUsers=").append(activeUsers);
        sb.append(", newInstallUsers=").append(newInstallUsers);
        sb.append(", totalInstallUsers=").append(totalInstallUsers);
        sb.append(", sessions=").append(sessions);
        sb.append(", sessionsLength=").append(sessionsLength);
        sb.append(", totalMembers=").append(totalMembers);
        sb.append(", activeMembers=").append(activeMembers);
        sb.append(", newMembers=").append(newMembers);
        sb.append(", pv=").append(pv);
        sb.append(", created=").append(created);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}
